﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class Option : MonoBehaviour {

	public int choise = 1;
	public Transform posOne;
	public Transform posTwo;

	// Use this for initialization
	void Start () {
		
	}
	
	// Update is called once per frame
	void Update () {
		if (Input.GetKeyDown(KeyCode.W)) {
			choise = 1;
			transform.position = posOne.position;
		}
		else if((Input.GetKeyDown(KeyCode.S)))
		{
			choise = 2;
			transform.position = posTwo.position;
		}
		if (choise == 1 && Input.GetKeyDown(KeyCode.Space)) {
			SceneManager.LoadScene(1);
		}
	}
}
